package prjo;

/**
 * 菜的信息
 *
 * @author shkstart
 * @creat 17:07 2022/6/3
 */

public class dishMeg {
    private dish dish;
    private int num;

    public dishMeg(prjo.dish dish, int num) {
        this.dish = dish;
        this.num = num;
    }

    public prjo.dish getDish() {
        return dish;
    }

    public void setDish(prjo.dish dish) {
        this.dish = dish;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    @Override
    public String toString() {
        return dish.getName() + " " + num + "份";
    }
}
